package com.example.userprovider.service;

import com.example.userprovider.dao.UserMapper;
import com.jbf.pojo.User;
import com.jbf.service.MyService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Service
public class MyServiceImpl implements MyService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findUserByName(String name) {
        return userMapper.findUserByName(name);
    }
}
